import React from 'react'
import SupplyDemand from './SupplyDemand'
import CompetingCompanies from './CompetingCompanies'
import './style.less'

export interface MarketConditionsProps {
  companyCode: string
}

const MarketConditions: React.FC<MarketConditionsProps> = (props: MarketConditionsProps) => {
  const { companyCode } = props

  return (
    <div className="company-detail-market-conditions-wrapper">
      <SupplyDemand companyCode={companyCode} />
      <CompetingCompanies companyCode={companyCode} />
    </div>
  )
}

export default MarketConditions
